import request from '@/utils/request'

// 获取购物车数据接口:
export function getShopCarList() {
	return request({
		url: '/api/shopcar/getShopCarList',
	})
}

// 删除购物车数据接口:
export function deleteShopCar(params, token) {
	return request({
		url: '/api/shopcar/deleteShopCar',
		params,
		headers: {
			token
		}
	})
}

// 加入购物车数据接口:
export function addShopCar(data, token) {
	return request({
		url: '/api/shopcar/addShopCar',
		method: 'post',
		data,
		headers: {
			token
		}
	})
}

// 删除购物车数据接口:
export function deleteShopCars(ids, token) {
	return request({
		url: '/api/shopcar/deleteShopCars',
		method: 'post',
		data: ids,
		headers: {
			token
		}

	})
}